#首先环境要有docker

docker pull redis:3.2.9
docker pull tomcat:8.5.15
docker build cevin15/jenkins-jdk:1.1 .
docker run --name pool-redis -d -p 7379:6379 -v /Users/cevin/Documents/docker_home/jenkins_custom/redis-data:/data redis:3.2.9
docker run --name pool-tomcat -d -p 8017:8080 --link=pool-redis:redis -v /Users/cevin/Documents/youbenzi/docker-pool/production:/var/data/dockerpool -v /Users/cevin/Documents/docker_home/jenkins_custom/tomcat-conf/server.xml:/usr/local/tomcat/conf/server.xml tomcat:8.5.15




docker run --name pool-tomcat -it --rm -p 8017:8080 --link=pool-redis:redis -v /Users/cevin/Documents/youbenzi/docker-pool/production:/var/data/dockerpool -v /Users/cevin/Documents/docker_home/jenkins_custom/tomcat-conf/server.xml:/usr/local/tomcat/conf/server.xml tomcat:8.5.15